# 定义日期范围
start_date = "2024-04-19"
end_date = "2024-05-19"

# 定义URL模板
url_template = "https://www.wx-now.com/Archival/ZGSZ/{year}/{month}/{day}/{hour}/00"

# 生成URL列表
urls = [
    url_template.format(year=2024, month=month, day=day, hour=hour)
    for month in range(4, 6)  # 4月到5月
    for day in range(1, 30)   # 19号到29号，假设每个月都有30天
    for hour in range(0, 24)   # 0点到23点
]

# 打印生成的URL列表
for url in urls:
    print(url)
